package com.example.xd.defaultcall;

import java.util.Formatter;

/**
 * @auther XuDan on 2020/6/4.
 */
public class TimeUtils {
    public static String stringForTime(long timeMs) {
        long seconds = timeMs % 60;
        long minutes = (timeMs / 60) % 60;
        return new Formatter().format("%02d:%02d", minutes, seconds).toString();
    }

}
